<?php
header("Content-Type: text/html; charset=utf-8");
define("BOOTSTRAP","bootstrap");
require_once "lib/Errorinfo.php";

if(empty($_GET["c"]))
    $str = "user/login";
else
    $str = $_GET["c"];
$str = explode("/",$str);
if(count($str) != 2)
    exit($str.ERROR_CONTROLLER);
$c_path = "controller/".$str[0].".php";
if(!file_exists($c_path))
    exit($str.ERROR_CONTROLLER);
require_once $c_path;
$controller = new $str[0]();
$controller->$str[1]();